function onlyReadProperty(obj, name, defualtVal) {
    let _val = defualtVal;
    Object.defineProperty(obj, name, {
        get() {
            return _val;
        },
        set() {
            throw new Error('无法修改' + name + '属性')
        },
        configurable: false,
    })
    return function (valParam) {
        _val = valParam;
    };
}